package com.bootdo.system.controller;

import com.bootdo.system.domain.ApptupianDO;
import com.bootdo.system.service.ApptupianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class DownloadAppController {

    @Autowired
    private ApptupianService apptupianService;

    @GetMapping("/downloadapp")
    public String downloadapp(Model model) {

        ApptupianDO downpic = apptupianService.get(7);

        model.addAttribute("downpic", downpic);

        return "downloadapp";
    }
}
